package com.tongji.housediy.controller.CantavilCMD
{
	import com.tongji.housediy.events.CantavilEvent.GetCantavilEvent;
	import com.tongji.housediy.model.CantavilModel;
	import com.tongji.housediy.service.CantavilService;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2011/6/24
	 */ 
	public class GetCantavilCommand extends Command
	{
		[Inject]
		public var service:CantavilService;
		
		[Inject]
		public var model:CantavilModel;
		
		[Inject]
		public var event:GetCantavilEvent;
		
		override public function execute():void
		{
			service.getAllCantavils();
			/*switch(event.type)
			{
				case "getCantavil":
					service.getAllCantavils();
					break;
				case "updateCantavil":
					model.updateCantavil(event.tempCantavils);
					break;
			}*/
		}		
	}
}